import Vue from 'vue';
import App from './App.vue';
import router from './router' // 导入路由实例
// md文件预览相关依赖
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';
// highlightjs 核心代码
import hljs from 'highlight.js';

Vue.config.productionTip = false;


// md预览使用highlight.js主题
VMdPreview.use(githubTheme, {
  Hljs: hljs,
});

Vue.use(VMdPreview);

new Vue({
  router, // 将路由实例注入根Vue实例
  render: (h) => h(App),
}).$mount('#app');
